package stack

/**
栈
*/

type IntStack struct {
	Len  int
	Cap  int
	List []int
}

func NewStack(cap ...int) *IntStack {
	var tmp int
	if cap[0] != 0 {
		tmp = cap[0]
	} else {
		tmp = 1 << 31
	}
	return &IntStack{
		Cap: tmp,
	}
}
